import React, { Suspense } from "react";
import ReactDOM from "react-dom/client";
import { RouterProvider } from "react-router-dom";
import Router from "./router/index";
import "@global/index.scss";
import "@global/index";

ReactDOM.createRoot(document.getElementById("root") as HTMLElement).render(
  <Suspense fallback={<h1>加载中...</h1>}>
    <RouterProvider router={Router} />
  </Suspense>
);
